import TabbarPage from '../tabbar/TabbarPage';
import HomePage from '../components/HomePage';
import MyPage from '../components/MyPage';
import ProfilePage from '../components/ProfilePage';
import SettingsPage from '../components/SettingsPage';

import { NativeStackNavigationOptions } from '@react-navigation/native-stack';
import { ComponentType } from 'react';

type ScreenConfig =
  | ComponentType<any>
  | {
      component: ComponentType<any>;
      options?: NativeStackNavigationOptions;
    };

const screens: Record<string, ScreenConfig> = {
  TabbarPage: {
    component: TabbarPage,
    options: { headerShown: false }, // 隐藏顶部导航栏
  },
  Home: {
    component: HomePage,
    options: { title: '自定义首页标题' },
  },
  MyPage: MyPage,
  Profile: ProfilePage,
  Settings: SettingsPage,
};

export default screens;